package edu.nju.desserthouse.action.business;

import java.io.Serializable;
import java.util.ArrayList;

import nju.edu.desserthouse.model.Bonus;

public class BonusInfoBean implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private ArrayList<Bonus> bonus = new ArrayList<Bonus>();
	
	public int getBonusLevel(int i){
		return bonus.get(i-1).getLevel();
	}
	
	public double getBonusDiscount(int i){
		return bonus.get(i-1).getDiscount();
	}
	
	public double getBonusWeight(int i){
		return bonus.get(i-1).getWeight();
	}
	
	public int getListSize(){
		return bonus.size();
	}
	
	public void setBonusList(ArrayList<Bonus> bonus){
		this.bonus = bonus;
	}

}
